import { PolylineEdge, PolylineEdgeModel } from '@logicflow/core'

class CustomEdgeModel extends PolylineEdgeModel {
  setAttributes() {
    this.isAnimation = false
  }
  getEdgeAnimationStyle() {
    const style = super.getEdgeAnimationStyle()
    style.strokeDasharray = '5 5'
    style.animationDuration = '10s'
    return style
  }
}

export default {
  type: 'customEdge',
  view: PolylineEdge,
  model: CustomEdgeModel
}
